From 099b967885d6ed0bd84cb3657311c470367fdee5 Mon Sep 17 00:00:00 2001 From: Matthias Clasen Date: Fri, 17 Aug 2018 21:45:11 +0000 Subject: [PATCH] Don't fail the build if c++ isn't found The intention of this check was to skip the keyword test if no c++ compiler is found. But the meson docs say that add_languages() will abort unless we pass required: false. --- testsuite/gtk/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testsuite/gtk/meson.build b/testsuite/gtk/meson.build index 319eb14343..296aca3206 100644 --- a/testsuite/gtk/meson.build +++ b/testsuite/gtk/meson.build @@ -90,7 +90,7 @@ foreach t : tests endforeach # FIXME: if objc autotestkeywords_CPPFLAGS += -DHAVE_OBJC=1 -x objective-c++ -if add_languages('cpp') +if add_languages('cpp', required: false) test_exe = executable('autotestkeywords', 'autotestkeywords.cc', c_args : test_cargs + ['-Idummy-headers'], -- 2.30.2